package com.hzdl.library.service.impl;

import com.hzdl.library.dao.AdminDao;
import com.hzdl.library.dao.impl.AdminDaoImpl;
import com.hzdl.library.domain.Admin;
import com.hzdl.library.service.AdminService;

public class AdminServiceImpl implements AdminService {
    AdminDao ald = new AdminDaoImpl();

    @Override
    public Admin selectAdmin(Integer id, String passwd) {
        return ald.selectAdmin(id,passwd);
    }

    @Override
    public int updateAdmin(Integer id, String newPass) {
        return ald.updateAdmin(id,newPass);
    }
}
